package bookworm;

import java.util.LinkedList;

/**
 * 
 * a class we use to get all book tags which are compatible with our system.
 * these book tags are the most used in Revish, which is our book review supplier. 
 *
 */
public class AdministratorOfAllBookTagsUsedByTheSystem 
{
	/**
	 * gets all book tags used in our program. These tags are associated with
	 * books as well as their reviews. We want to turn possible for a user
	 * to search book reviews based on tags, then this method will be very
	 * important
	 * @return book tags included in our system
	 */
	public static LinkedList<String> getAllBookTags()
	{
		LinkedList<String> tagsOfBooks = new LinkedList<String>();
		tagsOfBooks.add("adventure");
		tagsOfBooks.add("death");
		tagsOfBooks.add("family");
		tagsOfBooks.add("fantasy");
		tagsOfBooks.add("friendship");
		tagsOfBooks.add("highschool");
		tagsOfBooks.add("historicalfiction");
		tagsOfBooks.add("history");
		tagsOfBooks.add("horror");
		tagsOfBooks.add("humour");//marked
		tagsOfBooks.add("love");
		tagsOfBooks.add("magic");//marked
		tagsOfBooks.add("murder");
		tagsOfBooks.add("mystery");//marked
		tagsOfBooks.add("romance");
		tagsOfBooks.add("rhyming");
		tagsOfBooks.add("sciencefiction");
		tagsOfBooks.add("storytime");//stopped here
		tagsOfBooks.add("suspense");
		tagsOfBooks.add("teen");
		tagsOfBooks.add("thriller");
		tagsOfBooks.add("vampires");
		tagsOfBooks.add("war");
		tagsOfBooks.add("youngadult");
		tagsOfBooks.add("zombie");
		
		return tagsOfBooks;
		
	}
	
	public static LinkedList<String> getAllBookTagsWithSpace()
	{
		LinkedList<String> tagsOfBooks = new LinkedList<String>();
		tagsOfBooks.add("adventure");
		tagsOfBooks.add("death");
		tagsOfBooks.add("family");
		tagsOfBooks.add("fantasy");
		tagsOfBooks.add("friendship");
		tagsOfBooks.add("high school");
		tagsOfBooks.add("historical fiction");
		tagsOfBooks.add("history");
		tagsOfBooks.add("horror");
		tagsOfBooks.add("humour");//marked
		tagsOfBooks.add("love");
		tagsOfBooks.add("magic");//marked
		tagsOfBooks.add("murder");
		tagsOfBooks.add("mystery");//marked
		tagsOfBooks.add("romance");
		tagsOfBooks.add("rhyming");
		tagsOfBooks.add("science fiction");
		tagsOfBooks.add("storytime");//stopped here
		tagsOfBooks.add("suspense");
		tagsOfBooks.add("teen");
		tagsOfBooks.add("thriller");
		tagsOfBooks.add("vampires");
		tagsOfBooks.add("war");
		tagsOfBooks.add("young adult");
		tagsOfBooks.add("zombie");
		
		return tagsOfBooks;
	}
	
	public static boolean isTagUsedByOurSystem(String tag)
	{
		LinkedList<String> bookTags = getAllBookTags();
		for(int i = 0; i < bookTags.size(); i++)
		{
			String oneTag = bookTags.get(i);
			if(oneTag.compareToIgnoreCase(tag) == 0)
			{
				return true;
			}
		}
		return false;//tag is not used by our system
	}
	
	

}
